docs: update Dockerfile
authorIgor Opaniuk <igor.opaniuk@foundries.io>
Wed, 15 Jan 2025 16:08:51 +0000 (17:08 +0100)
committerIgor Opaniuk <igor.opaniuk@foundries.io>
Wed, 15 Jan 2025 16:16:03 +0000 (17:16 +0100)
commit12f850a8d37d9cb04488c137f1e402d2fb54fedd
tree8856ec7df2b64f334b34f1a4b53809b825ac75af
parent639db09ea06e624b27bb05a5c35f8922e8c0c3e5
docs: update Dockerfile

Fix issues in Dockerfile:
1. Update Fedora image to the latest version 41, otherwise docker build
   fails with an error:

   Step 1/7 : FROM registry.fedoraproject.org/fedora:28
   manifest for registry.fedoraproject.org/fedora:28 not found: manifest unknown: manifest unknown

2. Force install python3-yaml package, as it's required for running some
   tests. For example, tests/test-remote-headers.sh will fail without
   it:

   V=$($CMD_PREFIX ostree --version | \
       python3 -c 'import sys, yaml; print(yaml.safe_load(sys.stdin)["libostree"]["Version"])')
   Traceback (most recent call last):
   File "<string>", line 1, in <module>
    import sys, yaml; print(yaml.safe_load(sys.stdin)["libostree"]["Version"])
    ^^^^^^^^^^^^^^^^
   ModuleNotFoundError: No module named 'yaml'

With these fixes `make check` executes successfully in a container:
============================================================================
Testsuite summary for libostree 2024.11
============================================================================
 TOTAL: 935
 PASS:  888
 SKIP:  47
 XFAIL: 0
 FAIL:  0
 XPASS: 0
 ERROR: 0

Signed-off-by: Igor Opaniuk <igor.opaniuk@foundries.io>
docs/contributing-tutorial.md